//
// @Auther: by wujehy 
// @Email:wujehy@qq.com
// @Data:2020/9/12
// @Time:2:39 下午
//
//

#include "AuthMod.h"
#include "base_types.h"
#include "glog/logging.h"

using namespace GeeJoan;

void AuthMod::init()
{
    LOGINFO << " AutoMod::init ";

}

//void AuthMod::init_complete(Global_Context *context)
//{
//    LOGINFO << " AutoMod::init_complete ";
//    this->globalContext = context;
//}

ModTypeEnum AuthMod::mod_type()
{
    return ModType_AuthMod;
}

void AuthMod::procMessage(const HanderDataType *hander, StatusCodeTypeEnum &code, std::string &resposeBody)
{
    LOGINFO << "AutoMod::procMessage subtype = " << int(hander->subtype);
    if (hander->subtype == 1)
    {
        LOGINFO << " call client id " << hander->clientid;

        code = Status_SUCCESS;
    } else
    {
        LOGINFO << " sub type fail ";
    }
}
